import React, { Component } from 'react';
import createHistory from 'history/createBrowserHistory';
import SimpleTest from './SimpleTest';
import AgentList from './AgentList';

export var testCom = text => {
	var Com = props => {
		return <span>{text}</span>;
	};
	return Com;
};
export default [
	{
		path: '/test',
		icon: 'line-chart',
		default: true,
		name: '测试',
		component: SimpleTest,
	},
	{
		path: '/mgr',
		icon: 'table',
		default: true,
		name: '管理',
		component: AgentList,
	},
];

export var history = createHistory();
